<template>
  <div class="recommends">
    <div v-for="item in recommends" class="recommends-items">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>

</template>

<script>
    export default {
        name: "RecommendsView",
        props:{
          recommends:{
            type:Array,
            default(){
              return []
            }
          }
        }
    }
</script>

<style scoped>
.recommends{
  display: flex;
  text-align: center;
  width: 100%;
  padding: 15px 5px 20px;
  border-bottom: 10px #eeeeee solid;
}
  .recommends-items{
    flex: 1;
    font-size: 20px;
  }
  .recommends-items img{
    width: 65px;
    height: 65px;
    margin-bottom: 10px;
  }
</style>
